<h2>User Group</h2>
<table>
    <tr>
        <td>Id : </td><td><?php echo $authusergroup['Authusergroup']['id']; ?></td>
    </tr>
    <tr>
        <td>Group Name : </td><td><?php echo $authusergroup['Authusergroup']['name']; ?></td>
    </tr>
    <tr>
        <td>Group Parent : </td><td><?php echo $parentgroup['Authusergroup']['name'] ?></td>
    </tr>    
</table>
<h3>Related Authusers</h3>
<?php if (!empty($authusergroup['Authuser'])): ?>
    <table cellpadding="0" cellspacing="0" class="list issues">
        <tr>
            <th>name</th>
            <th>username</th>
            <th>allow</th>
            <th class="actions">Actions</th>
        </tr>
        <?php foreach ($authusergroup['Authuser'] as $authuser): ?>
            <tr>
                <td><?php echo $authuser['name']; ?></td>
                <td class="a-center"><?php echo $authuser['username']; ?></td>
                <td class="a-center"><?php echo(($authuser['allow']) ? "Sí" : "No"); ?></td>
                <td class="actions">
                    <?php echo $this->Html->link(__('Edit', true), array('controller' => 'authusers', 'action' => 'edit', $authuser['id'])); ?>
                    <?php echo $this->Html->link(__('Delete', true), array('controller' => 'authusers', 'action' => 'delete', $authuser['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $authuser['id'])); ?>
                </td>
            </tr>
        <?php endforeach; ?>
    </table>
<?php endif; ?>

<h3>Related Resources</h3>
<?php if (!empty($authusergroup['Authresource'])): ?>
    <table cellpadding="0" cellspacing="0" class="list issues">
        <tr>
            <th>name</th>
            <th>description</th>
        </tr>
        <?php foreach ($authusergroup['Authresource'] as $authresource): ?>
            <tr>
                <td><?php echo $authresource['name']; ?></td>
                <td><?php echo $authresource['description']; ?></td>
            </tr>
        <?php endforeach; ?>
    </table>
<?php endif; ?>